package com.dbuil.bleshoes.ui.view;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.TextView;

import com.dbuil.bleshoes.R;


public class LoadingDialog extends Dialog {


    TextView tvLoading;
    private Context context;


    public LoadingDialog(Context context, int theme) {
        super(context, theme);
        this.context = context;

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_loading);
        tvLoading = findViewById(R.id.tv_loading);
    }

    /**
     * 设置数据
     */
    public void setDialogTip(String tip) {
        if (!TextUtils.isEmpty(tip)) {
            tvLoading.setText(tip);
        }
    }
}
